package top.iflyoung.cim.biz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author liguiyang
 * @description
 * @sine 1.8
 * @date 2021/9/416:32
 **/
@Data
@TableName("chat_login_status")
public class ChatLoginStatus extends Model<ChatLoginStatus> {
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;
    @TableField("UserID")
    private Long userId;
    @TableField("CreateTime")
    private Date createTime;
    @TableField("IP")
    private String ip;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
